﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="P03_Edit.aspx.vb" Inherits="P03_Edit" %>

<%@ Register Assembly="ISNet.WebUI.WebInput" Namespace="ISNet.WebUI.WebControls" TagPrefix="ISWebInput" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style>
        input {
            font-family: Tahoma !important;
            font-size: 10px !important;
        }

        html * {
            font-family: Tahoma;
            font-size: 10px;
        }
    </style>
    <style>
        .WI3-F-N {
            border: none !important;
        }

        .WI3-F-O {
            border: none !important;
        }

        .tdstyle {
            border: 1px solid #808080;
            font-family: Tahoma;
            vertical-align: top;
            background-color: lightgray;
        }

        .tdstyle2 {
            border: 1px solid #808080;
            font-family: Tahoma;
            vertical-align: top;
        }

        .tdstyle3 {
            text-align: center;
            border: 1px solid #808080;
            font-family: Tahoma;
            vertical-align: top;
            font-size: 11px;
            background-color: #75b6ed;
        }
    </style>
    <script>
        function ClosePop() {
            window.parent.TINY.box.hide();
        }

        function isNumberKey(evt) {
            var charCode = (evt.which) ? evt.which : event.keyCode

            if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode != 46)
                return false;

            return true;
        }

        function ClearComma(obj) {
            var str = "";
            
            str = obj.value;
            str = str.replace(/\,/g, '');

            obj.value = str;
            var n = str.length;
            SelectPos(obj, n);
        }

        function SelectPos(obj, pos) {
            var input = obj;
            if ('selectionStart' in input) {
                input.selectionStart = pos;
                input.selectionEnd = pos;
                input.focus();
            }
            else {  // Internet Explorer before version 9
                var inputRange = input.createTextRange();
                inputRange.moveStart("character", pos);
                inputRange.collapse();
                inputRange.moveEnd("character", pos);
                inputRange.select();
            }
        }

        function SetComma(obj) {
            var x;
            x = obj.value;
            var y;
            y = parseFloat(x);
            x = y.toFixed(2);
            x = addCommas(x)
            //x = x.replace(/\.00$/, '');
            obj.value = x;

            CalSum();
        }

        function addCommas(NumberStr) {
            NumberStr = parseFloat(NumberStr).toFixed(2);
            NumberStr += '';
            NumberData = NumberStr.split('.');
            Number1 = NumberData[0];
            Number2 = NumberData.length > 1 ? '.' + NumberData[1] : '';
            var rgx = /(\d+)(\d{3})/;
            while (rgx.test(Number1)) {
                Number1 = Number1.replace(rgx, '$1' + ',' + '$2');
            }
            var FinalNum = Number1 + Number2;
            FinalNum = FinalNum.replace(/\.00$/, '');
            return FinalNum;
        }

        function CalSum() {
            //
            // A = สินเชื่อคงเหลือ
            // B = NPL 3-6 เดือน
            // C = NPL 6-12 เดือน
            // D = NPL 12-24 เดือน
            // E = เกิน 24 เดือน
            // F = รวม NPL > 3 เดือน
            // G = อัตราหนี้ค้างชำระ
            //

            // calulcate sum of สินเชื่อคงเหลือ month 1-5 of previous year
            var AS0 = 0;
            //for (var i = 1; i <= 5 ; i++) {
            //    AS0 += parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, ''));
            //}
            AS0 = parseFloat(document.getElementById("A5").value.replace(/\,/g, ''));
            document.getElementById("ASUM0").value = addCommas(AS0);

            // calulcate sum of สินเชื่อคงเหลือ month 6-12 of previous year
            var AS1 = 0;
            //for (var i = 6; i <= 12 ; i++) {
            //    AS1 += parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, ''));
            //}
            AS1 = parseFloat(document.getElementById("A12").value.replace(/\,/g, ''));
            document.getElementById("ASUM1").value = addCommas(AS1);

            // calulcate sum of สินเชื่อคงเหลือ month 1-12 of current year
            var AS2 = 0;
            //for (var i = 13; i <= 24 ; i++) {
            //    AS2 += parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, ''));
            //}
            AS2 = parseFloat(document.getElementById("A24").value.replace(/\,/g, ''));
            document.getElementById("ASUM2").value = addCommas(AS2);

            var BS0 = 0;
            var CS0 = 0;
            var DS0 = 0;
            var ES0 = 0;
            // calculate field รวม NPL > 3 เดือน of month 1-5 of previous year
            for (var i = 1; i <= 5 ; i++) {
                // (รวม NPL > 3 เดือน) = (NPL 3-6 เดือน) + (NPL 6-12 เดือน) + (NPL 12-24 เดือน) + (เกิน 24 เดือน)
                document.getElementById("F" + i.toString()).value = addCommas(parseFloat(document.getElementById("B" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("C" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("D" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("E" + i.toString()).value.replace(/\,/g, '')));
                BS0 += parseFloat(document.getElementById("B" + i.toString()).value.replace(/\,/g, ''));
                CS0 += parseFloat(document.getElementById("C" + i.toString()).value.replace(/\,/g, ''));
                DS0 += parseFloat(document.getElementById("D" + i.toString()).value.replace(/\,/g, ''));
                ES0 += parseFloat(document.getElementById("E" + i.toString()).value.replace(/\,/g, ''));
            }
            // calculate sum of รวม NPL > 3 เดือน of month 1-5 of previous year
            var FS0 = BS0 + CS0 + DS0 + ES0;
            document.getElementById("BSUM0").value = addCommas(BS0);
            document.getElementById("CSUM0").value = addCommas(CS0);
            document.getElementById("DSUM0").value = addCommas(DS0);
            document.getElementById("ESUM0").value = addCommas(ES0);
            document.getElementById("FSUM0").value = addCommas(FS0);

            var BS1 = 0;
            var CS1 = 0;
            var DS1 = 0;
            var ES1 = 0;
            // calculate field รวม NPL > 3 เดือน of month 6-12 of previous year
            for (var i = 6; i <= 12 ; i++) {
                // (รวม NPL > 3 เดือน) = (NPL 3-6 เดือน) + (NPL 6-12 เดือน) + (NPL 12-24 เดือน) + (เกิน 24 เดือน)
                document.getElementById("F" + i.toString()).value = addCommas(parseFloat(document.getElementById("B" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("C" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("D" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("E" + i.toString()).value.replace(/\,/g, '')))
                BS1 += parseFloat(document.getElementById("B" + i.toString()).value.replace(/\,/g, ''));
                CS1 += parseFloat(document.getElementById("C" + i.toString()).value.replace(/\,/g, ''));
                DS1 += parseFloat(document.getElementById("D" + i.toString()).value.replace(/\,/g, ''));
                ES1 += parseFloat(document.getElementById("E" + i.toString()).value.replace(/\,/g, ''));
            }
            // calculate sum of รวม NPL > 3 เดือน of month 6-12 of previous year
            var FS1 = BS1 + CS1 + DS1 + ES1;
            document.getElementById("BSUM1").value = addCommas(BS0 + BS1);
            document.getElementById("CSUM1").value = addCommas(CS0 + CS1);
            document.getElementById("DSUM1").value = addCommas(DS0 + DS1);
            document.getElementById("ESUM1").value = addCommas(ES0 + ES1);
            document.getElementById("FSUM1").value = addCommas(FS0 + FS1);

            var BS2 = 0;
            var CS2 = 0;
            var DS2 = 0;
            var ES2 = 0;
            // calculate field of รวม NPL > 3 เดือน of current year
            for (var i = 13; i <= 24 ; i++) {
                // (รวม NPL > 3 เดือน) = (NPL 3-6 เดือน) + (NPL 6-12 เดือน) + (NPL 12-24 เดือน) + (เกิน 24 เดือน)
                document.getElementById("F" + i.toString()).value = addCommas(parseFloat(document.getElementById("B" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("C" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("D" + i.toString()).value.replace(/\,/g, '')) + parseFloat(document.getElementById("E" + i.toString()).value.replace(/\,/g, '')))
                BS2 += parseFloat(document.getElementById("B" + i.toString()).value.replace(/\,/g, ''));
                CS2 += parseFloat(document.getElementById("C" + i.toString()).value.replace(/\,/g, ''));
                DS2 += parseFloat(document.getElementById("D" + i.toString()).value.replace(/\,/g, ''));
                ES2 += parseFloat(document.getElementById("E" + i.toString()).value.replace(/\,/g, ''));
            }
            // calculate sum of รวม NPL > 3 เดือน of current year
            var FS2 = BS2 + CS2 + DS2 + ES2;
            document.getElementById("BSUM2").value = addCommas(BS2);
            document.getElementById("CSUM2").value = addCommas(CS2);
            document.getElementById("DSUM2").value = addCommas(DS2);
            document.getElementById("ESUM2").value = addCommas(ES2);
            document.getElementById("FSUM2").value = addCommas(FS2);

            var GS0 = 0;
            for (var i = 1; i <= 5 ; i++) {
                if (parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, '')) == 0) {
                    document.getElementById("G" + i.toString()).value = addCommas(parseFloat(100));
                    GS0 += 100;
                }
                else {
                    // 
                    // อัตราหนี้ค้างชำระ = (รวม NPL > 3 เดือน) * 100 / (สินเชื่อคงเหลือ)
                    // 
                    var G = parseFloat(parseFloat(document.getElementById("F" + i.toString()).value.replace(/\,/g, '')) * 100 /
                                        parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, '')));

                    document.getElementById("G" + i.toString()).value = addCommas(G);
                    GS0 += G;
                }
            }
            if (AS0 == 0) {
                GS0 = 100;
            }
            else {
                GS0 = ((FS0 * 100) / AS0);
            }

            document.getElementById("GSUM0").value = addCommas(GS0);

            var GS1 = 0;
            for (var i = 6; i <= 12 ; i++) {
                if (parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, '')) == 0) {
                    document.getElementById("G" + i.toString()).value = addCommas(parseFloat(100));
                    GS1 += 100;
                }
                else {
                    // 
                    // อัตราหนี้ค้างชำระ = (รวม NPL > 3 เดือน) * 100 / (สินเชื่อคงเหลือ)
                    // 
                    var G = parseFloat(parseFloat(document.getElementById("F" + i.toString()).value.replace(/\,/g, '')) * 100 /
                                        parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, '')));

                    document.getElementById("G" + i.toString()).value = addCommas(G);
                    GS1 += G;
                }
            }

            var AAS1;
            var GGS1;
            var FFS1;
            AAS1 = AS0 + AS1;
            GGS1 = GS0 + GS1;
            FFS1 = FS0 + FS1;
            if (AAS1 == 0) {
                GGS1 = 100;
            }
            else {
                GGS1 = ((FFS1 * 100) / AAS1);
            }

            document.getElementById("GSUM1").value = addCommas(GGS1);

            var GS2 = 0;
            for (var i = 13; i <= 24 ; i++) {
                if (parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, '')) == 0) {
                    document.getElementById("G" + i.toString()).value = addCommas(parseFloat(100));
                    GS2 += 100;
                }
                else {
                    // 
                    // อัตราหนี้ค้างชำระ = (รวม NPL > 3 เดือน) * 100 / (สินเชื่อคงเหลือ)
                    //
                    var G = parseFloat(parseFloat(document.getElementById("F" + i.toString()).value.replace(/\,/g, '')) * 100 /
                                        parseFloat(document.getElementById("A" + i.toString()).value.replace(/\,/g, '')));

                    document.getElementById("G" + i.toString()).value = addCommas(G);
                    GS2 += G;
                }
            }
            if (AS2 == 0) {
                GS2 = 100;
            }
            else {
                GS2 = ((FS2 * 100) / AS2);
            }

            document.getElementById("GSUM2").value = addCommas(GS2);
        }

        function DisableBtn() {
            try {
                var btn = document.getElementById("SaveDocument");
                btn.disabled = true;
            }
            catch (err) {
            }
        }
        window.onbeforeunload = DisableBtn;

        function WebInputOnKeyDown(controlId) {
            var textval = document.getElementById(controlId).value.toString();
            if (textval.length > 9) {
                if (event.keyCode < 48) {
                    return true;
                } else {
                    event.returnValue = false;
                    return false;
                }
            }
        }

        function WebInputOnKeyDown2(controlId) {
            var textval = document.getElementById(controlId).value.toString();
            if (textval.length > 4) {
                if (event.keyCode < 48) {
                    return true;
                } else {
                    event.returnValue = false;
                    return false;
                }
            }
        }
    </script>
    <style>
        input[type="text"] {
            border: none;
            width: 57px;
            height: 18px;
            font-family: Tahoma;
            font-size: 10px !important;
        }

            input[type="text"].readonly {
                background-color: #f3f3f3;
            }

            input[type="text"].readonly2 {
                background-color: #ffeaea;
            }
    </style>
</head>
<body onkeydown="return (event.keyCode!=13)">
    <form id="form1" runat="server">
        <div>
            <asp:Label ID="name1" runat="server" Text="ชื่อผลิตภัณฑ์" Font-Size="12px" Font-Bold="true"></asp:Label>
            <table width="1000px" style="text-align: left; vertical-align: text-top; border: 1px solid #f3f3f3;" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="tdstyle3" colspan="3"></td>
                    <td class="tdstyle3">ม.ค.</td>
                    <td class="tdstyle3">ก.พ.</td>
                    <td class="tdstyle3">มี.ค.</td>
                    <td class="tdstyle3">เม.ย.</td>
                    <td class="tdstyle3">พ.ค.</td>
                    <td class="tdstyle3">มิ.ย.</td>
                    <td class="tdstyle3">ก.ค.</td>
                    <td class="tdstyle3">ส.ค.</td>
                    <td class="tdstyle3">ก.ย.</td>
                    <td class="tdstyle3">ต.ค.</td>
                    <td class="tdstyle3">พ.ย.</td>
                    <td class="tdstyle3">ธ.ค.</td>
                    <td class="tdstyle3">รวม</td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="30px" rowspan="14" style="text-align: center; font-size: 11px;">
                        <asp:Label ID="year1" runat="server" Text="y-1" Font-Size="11px"></asp:Label></td>
                    <td class="tdstyle2" width="100px" rowspan="2" style="text-align: center; font-size: 11px;">สินเชื่อคงเหลือ</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ผลจริง</td>
                    <td class="tdstyle">
                        <asp:Label ID="A_ID" runat="server" Text="" Visible="false"></asp:Label>
                        <asp:Label ID="A_LAST2" runat="server" Text="" Visible="false"></asp:Label>
                        <input runat="server" tabindex="1" class="readonly" name="A1" id="A1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="2" class="readonly" name="A2" id="A2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="3" class="readonly" name="A3" id="A3" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="4" class="readonly" name="A4" id="A4" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="5" class="readonly" name="A5" id="A5" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="6" class="readonly2" name="ASUM0" id="ASUM0" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" style="visibility: hidden" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="7" class="readonly" name="A6" id="A6" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="8" class="readonly" name="A7" id="A7" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="9" class="readonly" name="A8" id="A8" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="11" class="readonly" name="A9" id="A9" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="12" class="readonly" name="A10" id="A10" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="13" class="readonly" name="A11" id="A11" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="14" class="readonly" name="A12" id="A12" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="15" class="readonly2" name="ASUM1" id="ASUM1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" rowspan="2" style="text-align: center; font-size: 11px;">NPL 3-6 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ผลจริง</td>
                    <td class="tdstyle">
                        <asp:Label ID="B_ID" runat="server" Text="" Visible="false"></asp:Label>
                        <asp:Label ID="B_LAST2" runat="server" Text="" Visible="false"></asp:Label>
                        <input runat="server" tabindex="16" name="B1" id="B1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="17" name="B2" id="B2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="18" name="B3" id="B3" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="19" name="B4" id="B4" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="20" name="B5" id="B5" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="21" class="readonly2" name="BSUM0" id="BSUM0" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" style="visibility: hidden" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="22" name="B6" id="B6" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="23" name="B7" id="B7" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="24" name="B6" id="B8" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="25" name="B9" id="B9" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="26" name="B6" id="B10" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="27" name="B6" id="B11" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="28" name="B12" id="B12" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="29" class="readonly2" name="BSUM1" id="BSUM1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" rowspan="2" style="text-align: center; font-size: 11px;">NPL 6-12 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ผลจริง</td>
                    <td class="tdstyle">
                        <asp:Label ID="C_ID" runat="server" Text="" Visible="false"></asp:Label>
                        <asp:Label ID="C_LAST2" runat="server" Text="" Visible="false"></asp:Label>
                        <input runat="server" tabindex="30" name="C1" id="C1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="31" name="C2" id="C2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="32" name="C3" id="C3" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="33" name="C4" id="C4" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="34" name="C5" id="C5" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="35" class="readonly2" name="CSUM0" id="CSUM0" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" style="visibility: hidden" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="36" name="C6" id="C6" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="37" name="C7" id="C7" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="38" name="C8" id="C8" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="39" name="C9" id="C9" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="40" name="C10" id="C10" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="41" name="C11" id="C11" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="42" name="C12" id="C12" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="43" class="readonly2" name="CSUM1" id="CSUM1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" rowspan="2" style="text-align: center; font-size: 11px;">NPL 12-24 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ผลจริง</td>
                    <td class="tdstyle">
                        <asp:Label ID="D_ID" runat="server" Text="" Visible="false"></asp:Label>
                        <asp:Label ID="D_LAST2" runat="server" Text="" Visible="false"></asp:Label>
                        <input runat="server" tabindex="44" name="D1" id="D1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="45" name="D2" id="D2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="46" name="D3" id="D3" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="47" name="D4" id="D4" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="48" name="D5" id="D5" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="49" class="readonly2" name="DSUM0" id="DSUM0" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" style="visibility: hidden" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="50" name="D6" id="D6" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="51" name="D7" id="D7" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="52" name="D8" id="D8" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="53" name="D9" id="D9" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="54" name="D10" id="D10" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="55" name="D11" id="D11" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="56" name="D12" id="D12" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="57" class="readonly2" name="DSUM1" id="DSUM1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" rowspan="2" style="text-align: center; font-size: 11px;">เกิน 24 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ผลจริง</td>
                    <td class="tdstyle">
                        <asp:Label ID="E_ID" runat="server" Text="" Visible="false"></asp:Label>
                        <asp:Label ID="E_LAST2" runat="server" Text="" Visible="false"></asp:Label>
                        <input runat="server" tabindex="58" name="E1" id="E1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="59" name="E2" id="E2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="60" name="E3" id="E3" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="61" name="E4" id="E4" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="62" name="E5" id="E5" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="63" class="readonly2" name="ESUM0" id="ESUM0" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" style="visibility: hidden" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="64" name="E6" id="E6" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="65" name="E7" id="E7" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="66" name="E8" id="E8" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="67" name="E9" id="E9" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="68" name="E10" id="E10" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="69" name="E11" id="E11" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="70" name="E12" id="E12" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="71" class="readonly2" name="ESUM1" id="ESUM1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" rowspan="2" style="text-align: center; font-size: 10px;">รวม NPL &gt; 3 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ผลจริง</td>
                    <td class="tdstyle">
                        <asp:Label ID="F_ID" runat="server" Text="" Visible="false"></asp:Label>
                        <asp:Label ID="F_LAST2" runat="server" Text="" Visible="false"></asp:Label>
                        <input runat="server" tabindex="72" class="readonly2" name="F1" id="F1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="73" class="readonly2" name="F2" id="F2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="74" class="readonly2" name="F3" id="F3" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="75" class="readonly2" name="F4" id="F4" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="76" class="readonly2" name="F5" id="F5" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="77" class="readonly2" name="FSUM0" id="FSUM0" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" style="visibility:hidden" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="78" class="readonly2" name="F6" id="F6" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="79" class="readonly2" name="F7" id="F7" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="80" class="readonly2" name="F8" id="F8" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="81" class="readonly2" name="F9" id="F9" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="82" class="readonly2" name="F10" id="F10" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="83" class="readonly2" name="F11" id="F11" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="84" class="readonly2" name="F12" id="F12" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="85" class="readonly2" name="FSUM1" id="FSUM1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" rowspan="2" style="text-align: center; font-size: 11px;">อัตราหนี้ค้างชำระ</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ผลจริง</td>
                    <td class="tdstyle">
                        <asp:Label ID="G_ID" runat="server" Text="" Visible="false"></asp:Label>
                        <asp:Label ID="G_LAST2" runat="server" Text="" Visible="false"></asp:Label>
                        <input runat="server" tabindex="86" class="readonly2" name="G1" id="G1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="87" class="readonly2" name="G2" id="G2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="88" class="readonly2" name="G3" id="G3" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="89" class="readonly2" name="G4" id="G4" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="90" class="readonly2" name="G5" id="G5" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="91" class="readonly2" name="GSUM0" id="GSUM0" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" style="visibility:hidden" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle"></td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="92" class="readonly2" name="G6" id="G6" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="93" class="readonly2" name="G7" id="G7" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="94" class="readonly2" name="G8" id="G8" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="95" class="readonly2" name="G9" id="G9" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="96" class="readonly2" name="G10" id="G10" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="97" class="readonly2" name="G11" id="G11" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="98" class="readonly2" name="G12" id="G12" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="99" class="readonly2" name="GSUM1" id="GSUM1" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="30px" rowspan="7" style="text-align: center; font-size: 11px;">
                        <asp:Label ID="year2" runat="server" Text="y" Font-Size="11px"></asp:Label></td>
                    <td class="tdstyle2" width="100px" style="text-align: center; font-size: 11px;">สินเชื่อคงเหลือ</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="100" class="readonly" name="A13" id="A13" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="101" class="readonly" name="A14" id="A14" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="102" class="readonly" name="A15" id="A15" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="103" class="readonly" name="A16" id="A16" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="104" class="readonly" name="A17" id="A17" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="105" class="readonly" name="A18" id="A18" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="106" class="readonly" name="A19" id="A19" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="107" class="readonly" name="A20" id="A20" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="108" class="readonly" name="A21" id="A21" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="109" class="readonly" name="A22" id="A22" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="110" class="readonly" name="A23" id="A23" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="111" class="readonly" name="A24" id="A24" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="112" class="readonly2" name="ASUM2" id="ASUM2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" style="text-align: center; font-size: 11px;">NPL 3-6 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="113" name="B13" id="B13" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="114" name="B14" id="B14" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="115" name="B15" id="B15" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="116" name="B16" id="B16" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="117" name="B17" id="B17" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="118" name="B18" id="B18" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="119" name="B19" id="B19" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="120" name="B20" id="B20" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="121" name="B21" id="B21" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="122" name="B22" id="B22" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="123" name="B23" id="B23" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="124" name="B24" id="B24" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="125" class="readonly2" name="BSUM2" id="BSUM2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" style="text-align: center; font-size: 11px;">NPL 6-12 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="126" name="C13" id="C13" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="127" name="C14" id="C14" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="128" name="C15" id="C15" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="129" name="C16" id="C16" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="130" name="C17" id="C17" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="131" name="C18" id="C18" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="132" name="C19" id="C19" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="133" name="C20" id="C20" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="134" name="C21" id="C21" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="135" name="C22" id="C22" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="136" name="C23" id="C23" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="137" name="C24" id="C24" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="138" class="readonly2" name="CSUM2" id="CSUM2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" style="text-align: center; font-size: 11px;">NPL 12-24 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="139" name="D13" id="D13" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="140" name="D14" id="D14" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="141" name="D15" id="D15" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="142" name="D16" id="D16" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="143" name="D17" id="D17" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="144" name="D18" id="D18" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="145" name="D19" id="D19" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="146" name="D20" id="D20" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="147" name="D21" id="D21" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="148" name="D22" id="D22" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="149" name="D23" id="D23" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="150" name="D24" id="D24" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="151" class="readonly2" name="DSUM2" id="DSUM2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" style="text-align: center; font-size: 11px;">เกิน 24 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="152" name="E13" id="E13" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="153" name="E14" id="E14" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="154" name="E15" id="E15" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="155" name="E16" id="E16" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="156" name="E17" id="E17" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="157" name="E18" id="E18" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="158" name="E19" id="E19" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="159" name="E20" id="E20" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="160" name="E21" id="E21" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="161" name="E22" id="E22" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="162" name="E23" id="E23" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="163" name="E24" id="E24" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" maxlength="10" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="164" class="readonly2" name="ESUM2" id="ESUM2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" style="text-align: center; font-size: 10px;">รวม NPL &gt; 3 เดือน</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="165" class="readonly2" name="F13" id="F13" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="166" class="readonly2" name="F14" id="F14" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="167" class="readonly2" name="F15" id="F15" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="168" class="readonly2" name="F16" id="F16" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="169" class="readonly2" name="F17" id="F17" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="170" class="readonly2" name="F18" id="F18" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="170" class="readonly2" name="F19" id="F19" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="171" class="readonly2" name="F20" id="F20" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="172" class="readonly2" name="F21" id="F21" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="173" class="readonly2" name="F22" id="F22" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="174" class="readonly2" name="F23" id="F23" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="175" class="readonly2" name="F24" id="F24" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="176" class="readonly2" name="FSUM2" id="FSUM2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td class="tdstyle2" width="100px" style="text-align: center; font-size: 11px;">อัตราหนี้ค้างชำระ</td>
                    <td class="tdstyle2" width="80px" style="text-align: center; font-size: 11px;">ประมาณการ</td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="177" class="readonly2" name="G13" id="G13" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="178" class="readonly2" name="G14" id="G14" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="179" class="readonly2" name="G15" id="G15" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="180" class="readonly2" name="G16" id="G16" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="181" class="readonly2" name="G17" id="G17" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="182" class="readonly2" name="G18" id="G18" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="183" class="readonly2" name="G19" id="G19" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="184" class="readonly2" name="G20" id="G20" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="185" class="readonly2" name="G21" id="G21" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="186" class="readonly2" name="G22" id="G22" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="187" class="readonly2" name="G23" id="G23" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="188" class="readonly2" name="G24" id="G24" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                    <td class="tdstyle">
                        <input runat="server" tabindex="189" class="readonly2" name="GSUM2" id="GSUM2" onkeypress="return isNumberKey(event)" onfocus="ClearComma(this)" onblur="SetComma(this);" type="text" readonly="true" />
                    </td>
                </tr>
                <tr>
                    <td colspan="16">
                        <p style="color: red; font-family: Tahoma; font-size: 11px; margin: 0px">*หมายเหตุ : จำนวนเงินหลักพันบาท</p>
                    </td>
                </tr>
                <tr>
                    <td align="center" colspan="16">
                        <asp:Button ID="SaveDocument" runat="server" Text="บันทึก" Width="60px" />&nbsp;&nbsp;<asp:Button ID="CloseBtn" runat="server" Text="ปิด" Width="60px" OnClientClick="ClosePop()" /></td>
                </tr>
            </table>
        </div>

        <%=scripttext%>
    </form>
</body>
</html>
